import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? '/api/risk' : '/risk'
// 业务来源下拉选择数据源
export const getApply = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/dict/get-apply-sources',
    method: 'post',
    data
  })
// 获取产品数据源
export const getProducts = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/dict/get-products',
    method: 'post',
    data
  })

// 客群数据源
export const getUserTypes = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/dict/get-user-types',
    method: 'post',
    data
  })
// 获取策略版本数据源
export const getStrategyVersions = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/report/dict/get-strategy-versions',
    method: 'post',
    data
  })
